package com.training.oops;

public class TaxCaluclator {

	public int caluclateTax() {

		return 0;
	}

	public int caluclateTax(String name, int w2Amount) {
		return (w2Amount * 10) / 100;
	}

	public int caluclateTax(String name, int w2Amount, boolean isHeadofHouse) {
		return (w2Amount * 8) / 100;
	}

	public int caluclateTax(String name, int w2Amount, int children) {
		if (children <= 2) {
			return (w2Amount * 6) / 100;
		} else {
			return (w2Amount * 4) / 100;
		}
	}

	public int caluclateTax(String name, int w2Amount, int children,
			boolean isHeadofHouse) {
		if (children <= 2) {
			return (w2Amount * 2) / 100;
		} else {
			return (w2Amount * 1) / 100;
		}
	}

}
